const API_CONFIG = [
    {
        name: "login",
        namespace: "",
        method: "post",
        headers: {
            "Content-Type": "application/json"
        },
        data: {},
        path: "/management/oauth/login",
        desc: "登录-授权"
    },
    {
        name: "refreshToken",
        namespace: "",
        method: "post",
        headers: {
            "Content-Type": "application/json"
        },
        data: {},
        path: "/auth/oauth/refresh",
        desc: "登录过期-刷新token"
    },
    {
        name: "userInfo",
        setCommonParam: true,
        namespace: "",
        method: "post",
        headers: {
            "Content-Type": "application/json"
        },
        queryString: false,
        data: {
            currentPage: 1,
            pageSize: 10
        },
        path: "/management/user/list",
        desc: "用户信息"
    },
    {
        name: "list",
        setCommonParam: true,
        namespace: "menu",
        method: "post",
        // headers: {
        //     "Content-Type": "application/json"
        // },
        data: {},
        path: "/management/menu/user/tree",
        desc: "菜单-权限列表"
    },
    {
        name: "changePassword",
        setCommonParam: true,
        namespace: "user",
        method: "post",
        headers: {
            "Content-Type": "application/json"
        },
        queryString: false,
        params: {},
        path: "/management/user/editPassword/self",
        desc: "修改密码"
    },
    {
        name: "sendCode",
        namespace: "user",
        setCommonParam: true,
        method: "get",
        params: {},
        path: "/management/user/sendCode",
        desc: "发送验证码"
    },
    {
        name: "wechatBindCode",
        namespace: "user",
        setCommonParam: true,
        headers: {
            "Content-Type": "application/json"
        },
        method: "post",
        params: {},
        path: "/management/oauth/bind/code",
        desc: "微信绑定验证码"
    },
    {
        name: "unchainBind",
        namespace: "user",
        setCommonParam: true,
        headers: {
            "Content-Type": "application/json"
        },
        method: "post",
        params: {},
        path: "/management/oauth/relieve/third/info",
        desc: "微信解绑"
    },
    {
        name: "sendSmsCode",
        namespace: "user",
        setCommonParam: true,
        method: "post",
        params: {},
        path: "/management/oauth/sendSmsCode",
        desc: "手机登陆发送验证码"
    },
    {
        name: "wxOpen",
        namespace: "user",
        setCommonParam: true,
        method: "get",
        params: {},
        path: "/management/oauth/wx/qr/url",
        desc: "微信登陆"
    },
    {
        name: "resetPass",
        namespace: "user",
        setCommonParam: true,
        method: "post",
        headers: {
            "Content-Type": "application/json"
        },
        params: {},
        path: "/management/user/findPassword",
        desc: "重置密码"
    },
    {
        name: "getAreaInfo",
        namespace: "user",
        setCommonParam: true,
        method: "post",
        params: {},
        path: "/management/government/switch",
        desc: "获取对应区级信息"
    },
    {
        name: "cityQuery",
        namespace: "",
        setCommonParam: true,
        method: "post",
        params: {},
        path: "/management/government/byCode",
        desc: "获取省市区镇村信息"
    },
    {
        name: "cityQueryAuth",
        namespace: "",
        setCommonParam: true,
        method: "post",
        params: {},
        path: "/management/government/byCodeWithPermission",
        desc: "根据权限获取省市区镇村信息"
    },
    {
        name: "cityQueryAuthNoVillage",
        namespace: "",
        setCommonParam: true,
        method: "post",
        params: {},
        path: "/management/government/byCodeWithPermissionNoVillage",
        desc: "根据权限获取省市区镇信息"
    },
    {
        name: "cityQueryAuthArea",
        namespace: "",
        setCommonParam: true,
        method: "post",
        params: {},
        path: "/management/government/byCodeForOpenTown",
        desc: "根据权限获取省市区信息,开通账号时使用，不是运营时使用"
    },
    {
        name: "cityAuthLink",
        namespace: "",
        setCommonParam: true,
        method: "post",
        headers: {
            "Content-Type": "application/json"
        },
        params: {},
        path: "/management/government/link",
        desc: "根据权限获取当前可以访问的数据区域"
    },
    {
        name: "getRole",
        namespace: "",
        setCommonParam: true,
        method: "post",
        params: {},
        path: "/management/role/enableList",
        desc: "获取角色"
    },
    {
        name: "getOptions",
        namespace: "",
        setCommonParam: true,
        method: "get",
        params: {},
        path: "/management/valueKind/list",
        desc: "获取配置类型"
    },
    {
        name: "getUnits",
        namespace: "",
        setCommonParam: true,
        method: "get",
        params: {},
        path: "/management/unitKind/list",
        desc: "获取单位"
    },
    {
        name: "getLabels",
        namespace: "",
        setCommonParam: true,
        method: "get",
        params: {},
        path: "/management/label/list",
        desc: "获取标签"
    },
    {
        name: "cosAuth",
        namespace: "",
        setCommonParam: true,
        method: "get",
        params: {},
        path: "/management/cos/sts",
        desc: "腾讯云临时鉴权信息获取"
    },
    {
        name: "getCurrentLocation",
        namespace: "",
        setCommonParam: true,
        method: "get",
        params: {},
        path: "/management/government/getLngLat ",
        desc: "获取当前区域中心点坐标"
    },
    {
        name: "getChart",
        namespace: "overview",
        setCommonParam: true,
        method: "get",
        params: {},
        path: "/management/village/statistics/chart/multiple",
        desc: "获取村普通统计概览图表数据"
    },
    {
        name: "getTable",
        namespace: "overview",
        setCommonParam: true,
        method: "get",
        params: {},
        path: "/management/village/statistics/chart/list",
        desc: "获取村普通统计概览表单数据"
    },
    {
        name: "get",
        namespace: "timerRule",
        setCommonParam: true,
        method: "get",
        params: {},
        path: "/management/timerRule/get",
        desc: "提醒详情"
    },
    {
        name: "resourceTree",
        namespace: "timerRule",
        setCommonParam: true,
        method: "get",
        params: {},
        path: "/management/timerRule/resourceTree",
        desc: "提醒详情"
    },
    {
        name: "save",
        namespace: "timerRule",
        setCommonParam: true,
        method: "post",
        headers: {
            "Content-Type": "application/json"
        },
        params: {},
        path: "/management/timerRule/save",
        desc: "定时提醒的保存和修改"
    },
    {
        name: "delete",
        namespace: "timerRule",
        setCommonParam: true,
        method: "post",
        headers: {
            "Content-Type": "application/json"
        },
        params: {},
        path: "/management/timerRule/delete",
        desc: "定时提醒的删除"
    }
];
export default API_CONFIG;
